home *** CD-ROM | disk | FTP | other *** search
/ The Business Master (3rd Edition) / The Business Master (3rd Edition).iso / files / datature / omahadb / manual.doc < prev    next >
Encoding:
Text File  |  1985-01-10  |  61.0 KB  |  1,783 lines

  1.  
  2.  
  3.  
  4.         
  5.         
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.                **********************************************
  14.                *                                            *
  15.                *         THE OMAHA DATABASE PROGRAM         *
  16.                *                                            *
  17.                *                                            *
  18.                *                VERSION 2.00                *
  19.                *                                            *
  20.                *                                            *
  21.                *          COPYRIGHT (C) 1984, 1988          *
  22.                *                                            *
  23.                *             ******************             *
  24.                *                                            *
  25.                *           GERALD E. GONDERINGER            *
  26.                *                                            *
  27.                *            ARCHDIOCESE OF OMAHA            *
  28.                *                                            *
  29.                **********************************************
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55. The Omaha DataBase Program
  56. Gerald Gonderinger  
  57. P.O. Box 150   
  58. Clearwater Ne. 68726
  59.  
  60.  
  61.              The Omaha DataBase Program     Page - 1
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74. DISCLAIMER.
  75.  
  76. In no event will the author be liable to you for any damages,  including any 
  77. lost  profits,  lost  savings or other incidental or  consequential  damages 
  78. caused or alleged to be caused by the use of these programs.
  79.  
  80.  
  81. COPYRIGHT:
  82.  
  83.      The  material  on this disk is copyrighted 1984 by Gerald  Gonderinger. 
  84. The  SORT.EXE program is copyrighted by Opt-Tech Data Processing,  of Humble 
  85. Texas  (1983).   I must pay $40.00 royalty for each use of SORT module.   If 
  86. you  like The Omaha DataBase Program,  please mail your check for $50.00  to 
  87. Gerald Gonderinger, Box 150, Clearwater Ne. 68726.
  88.  
  89.      This  disk is distributed without the SORT.EXE program.    Without  the 
  90. SORT.EXE  module,  The  Sorting  Program and The  Repair  Program  will  not 
  91. operate.  The materials here cannot be sold as part of a package without the 
  92. author's  permission.  You cannot make copies of this disk that contain  the 
  93. SORT.EXE program.  If you delete the SORT.EXE program from the disk, you can 
  94. share  this disk with other for demo purposes.  
  95.  
  96.  
  97. GETTING STARTED:
  98.  
  99. This  program uses some copyrighted programs from your D.O.S.  disk such  as 
  100. BASICA, MODE as well as the basic D.O.S. programs.  The INSTALL program will 
  101. copy  these  programs from your D.O.S.  disk and insert them onto The  Omaha 
  102. DataBase Program disk.   To begin,  start up your computer with your  D.O.S. 
  103. disk in Drive A.  Insert the Omaha DataBase Program disk into Drive B.  Then 
  104. type  B: INSTALL  to copy these programs onto your program disk.  
  105.  
  106. PRINTING MANUAL:
  107.  
  108. To print this manual,  turn on your printer.   If you are now in BASIC, type 
  109. "SYSTEM".  Then type "COPY MANUAL.DOC PRN".
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.              The Omaha DataBase Program     Page - 2
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.                              TABLE OF CONTENTS
  139.                              -----------------
  140.  
  141.  
  142. Getting started..................................................  2
  143. Table of Contents................................................  3
  144.  
  145. 1.0 General Introduction.........................................  5
  146.  
  147. 2.0 Specific Introduction........................................  6
  148.     2.1 Definitions..............................................  6
  149.     2.2 Sample Files on your disk................................  6
  150.     2.3 Linkage to Master File...................................  7
  151.     2.4 Temporary Files..........................................  7
  152.     2.5 Disk Space...............................................  7
  153.     2.6 As you begin.............................................  7
  154.  
  155. 3.0 The Create/Alter Program.....................................  9
  156.     3.1 Introduction.............................................  9
  157.     3.2 Choices..................................................  9
  158.     3.3 Create New Master File...................................  9
  159.         3.3.1 Data Disk..........................................  9
  160.         3.3.2 Entering Field Names and Descriptors...............  9
  161.     3.4 Create New Sub-File...................................... 10
  162.     3.5 Revise Master/Sub-File................................... 10
  163.     3.6 Delete Sub-File.......................................... 11
  164.     3.7 Print File Format........................................ 11
  165.  
  166. 4.0 Data Entry .................................................. 13
  167.     4.1 Introduction............................................. 13
  168.     4.2 Set Entry Parameters..................................... 13
  169.         4.2.1 Physical versus Linkage Order in Sub-Files......... 13
  170.     4.3 Add/Change Records....................................... 14
  171.         4.3.1 Function Keys...................................... 14
  172.         4.3.2 Adding/Changing Records............................ 14
  173.         4.3.3 Changing Master File Pointer on Sub-File........... 15
  174.     4.4 Search................................................... 15
  175.     4.5 Monitor Display of Records............................... 15
  176.  
  177. 5.0 Sorting ..................................................... 16
  178.     5.1 Introduction............................................. 16
  179.     5.2 Indicate Fields and Keys for Sort........................ 16
  180.     5.3 Sorting the Files........................................ 16
  181.     5.4 Sorted Index on Data Disk................................ 17
  182.     5.5 Conclusion............................................... 17
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.              The Omaha DataBase Program     Page - 3
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.                              TABLE OF CONTENTS
  205.                              -----------------
  206.  
  207.  
  208.  
  209.  
  210. 6.0 The Print Program............................................ 18
  211.     6.1 Introduction............................................. 18
  212.     6.2 Report Formats........................................... 18
  213.         6.2.1 Creating a new Format File......................... 18
  214.         6.2.2 Linked Records in Sub-File......................... 19
  215.         6.2.3 Report............................................. 19
  216.     6.3 Using Comparisons for your Report........................ 19
  217.     6.4 Printers................................................. 17
  218.     6.5 Cloning a New File....................................... 20
  219.         6.5.1 First "Create" the File............................ 20
  220.         6.5.2 "Print" the Clone File............................. 20
  221.         6.5.3 Merge Cloned Files together/Sub-File............... 21
  222.         6.5.4 Importance of Keeping Field Lengths Identical...... 21
  223.                                            
  224. 7.0 The Repair Program........................................... 22
  225.     7.1 Introduction............................................. 22
  226.     7.2 Choices.................................................. 22
  227.     7.3 Entering Sort Parameters for File Repair................. 23
  228.     7.4 Reconstruction of the Files.............................. 23
  229.  
  230. 8.0 Printer Configuration........................................ 24
  231.  
  232. 9.0 Conclusion................................................... 26
  233.     9.1 Cost of the Program...................................... 26
  234.     9.2 Maximum Capacity......................................... 26
  235.     9.3 Order Form............................................... 27
  236.  
  237.  
  238. The Omaha DataBase Program
  239. (c) 1984 Gerald E. Gonderinger
  240. Clearwater Ne. 68726
  241.  
  242. Sort.Exe
  243. (c) 1983 Opt-Tech Data Processing
  244. Humble, Texas 
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.              The Omaha DataBase Program     Page - 4
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.                     Section 1.0.0: GENERAL INTRODUCTION:
  273.  
  274.      The  Omaha DataBase Program originated within the Omaha Archdiocese  to 
  275. fulfill the need for a general data base program that would be suitable  for 
  276. maintaining  census information for large parishes.  However this program is 
  277. flexible  enough to be used for many other kinds of applications.  The  main 
  278. advantage  of  The Omaha DataBase Program is that it allows you  to  have  a 
  279. master file with five linked sub-files.   Each record within a sub-file must 
  280. be  linked to a specific record in the master file.   If there is more  than 
  281. one record in a sub-file for a master file record,  the sub-file records are 
  282. cross-indexed with each other.   The advantage of this system is obvious for 
  283. census  information.    In maintaining a census,  one usually would have  to 
  284. reserve space in each record for the largest family.  The problem is that in 
  285. reserving  room for 10 children for each family,  you end up wasting alot of 
  286. space for smaller families or widows.  
  287.  
  288.      The  Omaha DataBase Program will allow you to create a master file that 
  289. could contain the Name and Address of each parishioner.   The first sub-file 
  290. could  contain  the names of all the children and their  birthdays  etc.   A 
  291. second sub-file could contain the records for financial giving etc.
  292.  
  293.      The Omaha DataBase Program should allow even large parishes the ability 
  294. to maintain all of their census information.  
  295.      * Master File can have up to 5 linked sub-files
  296.      * Each file must fit on  one disk
  297.      * Each drive may contain a data disk     
  298.      * Maximum Records: 32,000
  299.      * Maximum Active Files: 6
  300.      * Maximum of 70 fields in each record.
  301.      * Allows large amounts of census data to be compacted on the disk
  302.      * Can be used with a fixed disk
  303.      * Allows easy browsing through the files
  304.      * Flexible Report module with sort
  305.      * Cost: $50.00 
  306.      
  307.      Please  make  a  backup copy of The Omaha DataBase Program  before  you 
  308. begin creating your own files.  There is sample set of data files already on 
  309. your disk.
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.              The Omaha DataBase Program     Page - 5
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.                      Section 2.0: SPECIFIC INTRODUCTION
  335.  
  336. 2.1 Definitions:
  337.      
  338.      Throughout this manual,  several terms will be used and they should  be 
  339. explained.
  340.  
  341.      "Field" or "Entry":  a collection of several characters or numbers form 
  342. the  smallest  unit of information.   For example,  you could have  a  field 
  343. called  "Last Name".   "Last Name" would be the field;  and "Smith" would be 
  344. the entry into that field.
  345.  
  346.      "Record":  several  fields form a record.   Thus a record might contain 
  347. the last name, first name, address, city, state, zip.  Together this forms a 
  348. record.
  349.  
  350.      "File":  several records form a file.   Thus 10 records all  containing 
  351. the  names  and  addresses would form the PARISH  file.   Within  the  Omaha 
  352. DataBase Program, there are two kinds of files: the master file and the sub-
  353. file.   The  master file is the first file on which all the other files  are 
  354. based.  Each record within each sub-file (you can have up to five sub-files) 
  355. must  be linked to a specific record in the master file.   You may have more 
  356. than one record in a sub-file linked to the same master file  record.   Thus 
  357. in  CHILDREN (the first sub-file),  you would enter all of the children  for 
  358. each  name  in the PARISH file.   Each child record would be linked  to  one 
  359. record in the PARISH file. 
  360.  
  361.      "Active  Drive":  This  is the disk drive that the computer will go  to 
  362. when  you issue a disk command without specifying which drive.   This  drive 
  363. should contain The Omaha DataBase Program.   The active drive is A when  you 
  364. start your computer.   If you have a fixed drive, you will change the active 
  365. drive to C.   The computer will search for the programs on the active drive. 
  366.      
  367.      "Master  Data Disk":  This drive contains the data disk with the format 
  368. file  and the file that contains the number of records (REC) in each of  the 
  369. data files.   You may have one set of data files on each data disk,  but you 
  370. may have several sets of data files.   The format file will be on the master 
  371. data disk for each set of files.  This will allow you to use one copy of the 
  372. DataBase  with  each set of your files.  The computer will always  ask  when 
  373. starting,  which drive contains the "master data disk".   The computer  will 
  374. always access this drive when it wishes to read the format file.
  375.  
  376.      "Program  Disk":  This is the disk that you have received that contains 
  377. The  Omaha DataBase Program.   You may use other disks to contain your  data 
  378. files.   These will be called "data disks" in this manual. (If you have more 
  379. than one data disk, then one of them will be designated as the "master" data 
  380. disk that will contain the format file.)
  381.  
  382.  
  383. 2.2 Sample Files on your disk
  384.  
  385.      Throughout this manual and on the disk,  we will be using sample files.  
  386. These  sample  files  have the PARISH file as the master  file.   This  file 
  387. contains  the  family  name,  the  name of  the  father  and  mother,  their 
  388. birthdates, address, telephone, and wedding date.  The first sub-file is the 
  389.  
  390.  
  391.              The Omaha DataBase Program     Page - 6
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400. CHILDREN  file.   This contains the name of the child and his/her  birthdate 
  401. and  whether or not they are still living at home.   The second linked  sub-
  402. file  is called FINANCE.   This contains the quarterly sub-totals  of  their 
  403. financial giving.  The third linked sub-file is called NOTES.  This contains 
  404. any  notes  you wish to make about the family.   All the information on  the 
  405. sample files is fictitious.
  406.  
  407. 2.3 Linkage to Master File
  408.  
  409.      Each  record  with  a sub-file must be linked to a  record  within  the 
  410. master file.  You cannot enter a record in a sub-file that is independent of 
  411. the master file.   Each sub-file is linked to the master file and not to the 
  412. sub-file above it.  For example, you should not construct your files so that 
  413. you would have as your 2nd sub-file, SCHOOLS, which would contain the school 
  414. last  attended for each of the records in the previous  sub-file,  CHILDREN.  
  415. The second sub-file must be linked to the master file, and not to a previous 
  416. sub-file.
  417.  
  418. 2.4 Temporary Files
  419.  
  420.      You  may  add and delete sub-files as you need them.  You can  use  the 
  421. Print Program to clone a file.   In cloning a file, it can be combination of 
  422. other files, space can be added or deleted.  You may use this sub-file for a 
  423. specific time only and then delete it when you are finished.  (You will also 
  424. have  to use the Create Program to enter specific information on the  fields 
  425. in the new file.   You can also use the Create Program to revise the  format 
  426. of  a  file.  The  program  will then make a copy of the  file  that  allows 
  427. additional room for other entries.)  You may have only five  sub-files.   If 
  428. you find you need more, you may use another data disk, and delete one of the 
  429. sub-files  that  is unneeded for your specific task and create  a  different 
  430. sub-file.
  431.  
  432. 2.5 Disk Space
  433.  
  434.      The main advantage of the master/sub-file type of construction is  that 
  435. it enables you to use only the disk space you really need.  Thus if a family 
  436. has  no  children,  no space is reserved for them in the CHILDREN  file.   A 
  437. parish  of  2,000+  families  should be able to  enter  all  of  its  census 
  438. information on 2 double sided,  double density IBM diskettes.  This prevents 
  439. the  necessity of purchasing an expensive hard disk to be able to use  other 
  440. data base programs for your parish census.
  441.  
  442. 2.6 As You Begin
  443.  
  444.      When  you first start up the computer (after Installation of the  DOS), 
  445. you  will  be  asked  to enter the date and the  time.   You  will  then  be 
  446. presented with a menu that offers you these choices:
  447.  
  448.           F1 CREATE/ALTER
  449.           F2 DATA ENTRY 
  450.           F3 SORT
  451.           F4 PRINT
  452.           F5 REPAIR
  453.           F6 PRINTER CONFIGURATION
  454.           F10 END
  455.  
  456.  
  457.              The Omaha DataBase Program     Page - 7
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.      By  pressing one of the function keys,  you will be transferred to  one 
  468. of  the  five  programs  that  make up  The  Omaha  DataBase  Program.   The 
  469. Create/Alter  program is used at the beginning to create your files or  used 
  470. later  to alter or change your files.   The Data Entry program is used  most 
  471. often to enter your data into the files.   The Sort program will prepare  an 
  472. index  based  on  several sort parameters.   This is used before  the  Print 
  473. program  which will print out labels or reports on your files based  on  the 
  474. physical or sorted record order.  The Repair program is used to repair files 
  475. if  some  damage has occurred.  The Printer Configuration will allow you  to 
  476. configure the Omaha DataBase Program to a variety of printers.
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.              The Omaha DataBase Program     Page - 8
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.                    Section 3.0: CREATE/ALTER
  534.  
  535. 3.1 INTRODUCTION:
  536.      
  537.      This  program is used to create or alter a master  or  sub-file.  Quite 
  538. frequently  you  will discover after several months of use that a master  or 
  539. sub-file  needs to be changed.   It can be changed without  re-entering  the 
  540. whole file.  This program will also be used when you are first creating your 
  541. master or sub-files.
  542.  
  543. 3.2 CHOICES
  544.  
  545.           PRESS FUNCTION KEY FOR CHOICE
  546.  
  547.           F1 CREATE NEW MASTER FILE
  548.           F2 CREATE NEW SUB FILE
  549.           F3 REVISE MASTER/SUB FILE
  550.           F4 DELETE SUB-FILE
  551.           F5 PRINT FILE FORMAT
  552.  
  553.           F10 EXIT
  554.  
  555.  
  556. 3.3 CREATE NEW MASTER FILE
  557.  
  558.      This  routine does not really create the master file.   It just  allows 
  559. you to enter the field names and descriptors for each field onto the program 
  560. disk of The Omaha DataBase Program into a file called "format". Each program 
  561. within  The Omaha DataBase will read this format file before reading any  of 
  562. the  files.  This format file will contain all the information on the  field 
  563. names,  types  and length for each file.   The format file is written on the 
  564. master data disk.
  565.  
  566. 3.3.1 Data Disk
  567.  
  568.      IMPORTANT  NOTICE:  This  routine  is  used only  when  you  are  first 
  569. beginning.    It  will  erase  the  "format"  file  that  contains  all  the 
  570. information about the files on the master data disk.   To proceed with  this 
  571. routine, type in the access code "CREATION".
  572.  
  573. 3.3.2 Entering Field Names and Descriptions
  574.  
  575.      You will then be asked to enter the master file name, and the drive for 
  576. the file.   You will then be asked to type in the title for each field,  the 
  577. type for the field, and the maximum number of spaces of the field.  You have 
  578. ten  spaces  for  each field title.   You have four  types  of  fields:  (1) 
  579. alphabetic;  (2) Number;   (3) Date;  (4) Dollars/cents.   A field should be 
  580. considered alphabetic if you do not wish to have a total or sub-total on it.  
  581. Thus zip codes,  while numeric,  can be considered as alphabetic information 
  582. since  you will never want a total of the zip codes.   The second type of  a 
  583. field  is a number.   This is used for a field that you will want totals on.  
  584. The  date  field is another type of field.   The correct format for  a  date 
  585. entry  is MMDDYY.   Thus January 6,  1980 would be entered as  010680.   The 
  586. zeros  must  be used for correct spacing.  (This is especially true for  the 
  587.  
  588.  
  589.              The Omaha DataBase Program     Page - 9
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598. Sort  and  Print program.)  A field that is designated as  dollars/cents  is 
  599. printed to two decimal places in the Print program.
  600.  
  601.      You  will  then be asked to indicate the maximum number of  spaces  for 
  602. each entry.  (The maximum length for any field is 255 bytes or spaces.)
  603.  
  604.      When  you  have entered all the fields for the master file,  press  the 
  605. enter key when the computer asks for the title of the field and the computer 
  606. will  begin writing the new "format" file on the master data disk.
  607.  
  608.      This  routine  then writes the format information for the  master  file 
  609. onto the master data disk.   The format file contains the format information 
  610. for  all  the files.   Since the master file is  created  first,  all  other 
  611. information on the format of other files is lost when this routine is run.
  612.  
  613. 3.4 CREATE NEW SUB-FILE
  614.  
  615.      This routine will allow you to add another sub-file to your system.  It 
  616. operates  much like the previous routine.   The computer will check to  make 
  617. sure that you do not already have five sub-files.   If you do not,  then the 
  618. computer will permit you to enter the information for the formation of a new 
  619. sub-file.   The computer will first ask the name of the sub-file.  (Remember 
  620. no  more than eight letters).   The computer will then ask for the letter of 
  621. the  drive  that will contain the data disk.   Generally the drive  will  be 
  622. either A, B or C.  However, the maximum limit is H.  
  623.  
  624.      At  this point you will then enter each field title,  type and  maximum 
  625. number of spaces reserved for each entry.
  626.  
  627. 3.5 REVISE MASTER/SUB FILE
  628.  
  629.      This  routine  will permit you to revise files after you  have  already 
  630. entered the format information.   This can be done before or after you  have 
  631. entered  information into the file.   You can revise any aspect of the files 
  632. you have created:  file name,  drive for file,  field title,  field type  or 
  633. field length.  
  634.  
  635.  
  636.      To  retain any information,  just press the enter key.   To change  any 
  637. information,  type in the new information.   If you wish to delete a  field, 
  638. just enter '0' for the field length.
  639.  
  640.      If  you  are  going to change the field length on a file  that  already 
  641. contains information, the file will have to be rewritten.  IMPORTANT NOTICE: 
  642. It is best to make a backup copy of your disk before you begin this routine, 
  643. just in case something goes wrong.
  644.  
  645.      To enter this routine,  you will have to enter the access code: REVISE. 
  646. The  computer  will then display the names of the files that  you  presently 
  647. have and will ask you to enter the number of the file you wish to change. 
  648.  
  649.      Generally speaking you can change information or delete it.  New fields 
  650. can  be  added only at the end of the other fields.  
  651.  
  652.      If your revised file already contains records,  the computer will  then 
  653.  
  654.  
  655.              The Omaha DataBase Program     Page - 10
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664. re-write  the file.   It will ask you which drive contains the old file  and 
  665. which drive is to contain the new file.  The computer will then read the old 
  666. file  and transform the fields to fit into the revised file format.   If you 
  667. are  shortening any field lengths,  longer information in the original  file 
  668. will be lost.
  669.  
  670. 3.6 DELETE SUB-FILE
  671.  
  672.      This  routine  will allow you to enter the number of the  sub-file  you 
  673. wish to delete.  It will delete the format information on this file from the 
  674. format file as well as deleting the file itself from the data disk.  It will 
  675. then  erase all pointers in the records of the master file that  pointed  to 
  676. linked records in the sub-file.  Then you must run The Repair Program if the 
  677. deleted  sub-file was not the last sub-file (if the deleted sub-file was  in 
  678. the middle,  the sub-files after it will be "collapsed";  e.g.  file #3 will 
  679. become file #2 etc.).
  680.  
  681.      There  are some files that you may need only for a short time or for  a 
  682. short task.  You can then delete this files when you are finished with them.  
  683. Perhaps you could add a file to contain only temporary information for  each 
  684. parishioner.   After you have printed up the master report,  you could  then 
  685. delete the sub-file.  
  686.  
  687. 3.7 PRINT FILE FORMAT
  688.  
  689.      Whenever  you  create  or revise a file format,  it is good  to  get  a 
  690. printed copy of the file formats.  The present sample file format looks like 
  691. this:
  692.  
  693. FILE FORMATS ON 01-01-80
  694.  
  695. MASTER FILE ======> PARISH   LENGTH:  128      ENTRIES:  14   DRIVE: A
  696.  
  697. #    TITLE                   TYPE             BEGINNING        LENGTH
  698. 1.   LAST NAME               ALPHA                11              20
  699. 2.   FATHER                  ALPHA                21              10   
  700. 3.   MOTHER                  ALPHA                41              10
  701. 4.   ADDRESS                 ALPHA                51              20
  702. 5.   CITY                    ALPHA                71              15
  703. 6.   STATE                   ALPHA                86              2
  704. 7    ZIP                     ALPHA                88              5
  705. 8.   TELEPHONE               ALPHA                93              8
  706. 9.   DISTRICT                ALPHA                101             2
  707. 10.  STATUS/MWDS             ALPHA                103             1
  708. 11.  MARRIAGE                DATE                 104             6
  709. 12.  ENVELOPE #              ALPHA                110             6
  710. 13.  MALE DOB                DATE                 116             6
  711. 14.  FMALE DOB               DATE                 122             6
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.              The Omaha DataBase Program     Page - 11
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731.  
  732. FILE ================>  CHILDREN      LENGTH 42     ENTRIES  4   DRIVE  A
  733.  
  734. #    TITLE                   TYPE           BEGINNING           LENGTH
  735. 1.   FIRST NAME              ALPHA                5               10 
  736. 2.   LAST NAME               ALPHA                15              20
  737. 3.   DOB                     DATE                 35              6
  738. 4.   STATUS (H/A)            ALPHA                41              1
  739.  
  740. FILE ===============>   FINANCE       LENGTH  36     ENTRIES  5  DRIVE A
  741.  
  742. #    TITLE                   TYPE           BEGINNING           LENGTH
  743. 1.   1 QUART.                $$$.$$               5               6
  744. 2.   2 QUART                 $$$.$$               11              6
  745. 3.   3 QUART                 $$$.$$               17              6
  746. 4.   4 QUART                 $$$.$$               23              6
  747. 5.   TOTAL                   $$$.$$               29              7
  748.  
  749.  
  750.  
  751. FILE ==============> NOTES          LENGTH: 65    ENTRIES 1      DRIVE: A
  752.  
  753. #    TITLE                   TYPE            BEGINNING         LENGTH
  754. 1.   Note:                   ALPHA                5               60
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765.  
  766.  
  767.  
  768.  
  769.  
  770.  
  771.  
  772.  
  773.  
  774.  
  775.  
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787.              The Omaha DataBase Program     Page - 12
  788.  
  789.  
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797.                          SECTION 4.0: DATA ENTRY
  798.  
  799.  
  800. 4.1 INTRODUCTION
  801.  
  802.      This program is the workhorse of the system.  This program will be used 
  803. to enter/revise information in the data files.    You will be presented with 
  804. these choices:
  805.  
  806.           F1  ADD/CHANGE RECORDS
  807.           F2  SEARCH
  808.           F3  MONITOR DISPLAY OF RECORDS
  809.  
  810.           F6  SET ENTRY PARAMETERS
  811.           F7  HELP
  812.           F8  DISPLAY FILES/FIELDS
  813.  
  814.      If you press F7 for HELP the computer will display the special function 
  815. keys  that are in use when you add/change records or have a monitor  display 
  816. of  the  records.   F8  will display the names of the files  and  the  field 
  817. titles.
  818.  
  819. 4.2 SET ENTRY PARAMETERS
  820.  
  821.      This routine is activated when you press F6.   You may or may not  find 
  822. this useful.    This routine is very handy if you wish to enter one specific 
  823. field in all the records.  For example, let's say that you wish to enter the 
  824. 3rd quarter financial information into the FINANCE sub-file.   This would be 
  825. the 3rd field within the 2nd sub-file.  You can set the entry parameters for 
  826. the 3rd field of the FINANCE sub-file.   Thus when you enter a record number 
  827. you  will be presented with the FINANCE file,  and the cursor will be at the 
  828. beginning  of the 3rd field.   This routine is especially useful if you  are 
  829. going to use a file to keep track of each Sunday's contributions.
  830.  
  831. 4.2.1 Physical versus Linkage Order within the Sub-Files
  832.  
  833.      You  will  also be asked if you want the physical order or the  linkage 
  834. order.   This  determines how the computer will interpret the record  number 
  835. you  enter.   Thus  when you are working on the CHILDREN file,  and wish  to 
  836. change  record #15,  do you mean that you wish to change the 15th record  in 
  837. the  CHILDREN  file (physical order) or change the records in  the  CHILDREN 
  838. file that are linked to the 15th record in the master file (linkage  order)?  
  839. Depending on the files and the circumstances, you will find one or the other 
  840. to be easier.  
  841.      
  842.      All record numbers for the master file are interpreted as the  physical 
  843. order since the master file is not linked to a file above it.  You will find 
  844. the  linkage  order  within the sub-files to be most useful  when  you  have 
  845. multiple records in a sub-file (like children) that are linked to one record 
  846. in the master file.
  847.  
  848.  
  849.  
  850.  
  851.  
  852.  
  853.              The Omaha DataBase Program     Page - 13
  854.  
  855.  
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862. 4.3  ADD/CHANGE RECORDS
  863.  
  864. 4.3.1 Function Keys
  865.  
  866.      These function keys will be in use during data entry:
  867.  
  868.      F1 Will move the cursor up one field within the record
  869.      F2 Will move the cursor down one field within the record
  870.      F3 Will move up to previous sub-file
  871.      F4 Will move down to next sub-file
  872.      F5 Will move to next record in same sub-file
  873.      F6 Will move to next record in the master file
  874.      F7 Will allow you to enter record # you wish to enter/view. If you 
  875.         have chosen the physical order, it will be the physical record  
  876.         number. If you have chosen the linkage order, it will be the 
  877.         record linked to that record number in the master file.
  878.      F8 Will delete the record you are working on.  If you are in the 
  879.         Master file, you will be able to delete all linked records in 
  880.         the sub-files as well.
  881.      F9 Will read original record from the disk if it has not yet been
  882.         re-written.
  883.      F10 will return to menu.
  884.  
  885.      It will take a little while to get the "hang" of the function keys, but 
  886. you  will really find that they make it easy to "browse" through the file to 
  887. change the records.
  888.  
  889.  
  890. 4.3.2 Adding/Changing Records
  891.  
  892.      The computer will ask for the record number you wish.   You may use the 
  893. function keys until you read the sub-file you wish.   If you press the enter 
  894. key  instead  of entering a number,  the computer will pick the  next  empty 
  895. record for your entry.   If you have deleted records,  the computer will use 
  896. these  up  first.   (The  computer keeps a linked list of  all  the  deleted 
  897. records  in  each  file,  so that they can be used up when new  records  are 
  898. needed.)
  899.  
  900.      When you are done entering the information on the record, you may press 
  901. a  function key to go to another record or if you entered information in the 
  902. last field,  the computer will ask  if you have "Any corrections (Y/N/X) ?".  
  903. Enter 'X' if you don't want the computer to stop to ask you if there are any 
  904. corrections.  
  905.  
  906.      If  you  are adding records in a sub-file,  and have finished the  last 
  907. field in the last record linked to a master record, the computer will remind 
  908. you  to press a function key to move to another record or press  "enter"  to 
  909. have  the  computer give you the next available blank record (which will  be 
  910. linked  to  the same master file record).   If you press "F5"  you  will  be 
  911. presented  with  the next record in the same sub-file.   For example if  you 
  912. were  entering children for master record #5,  which is linked  to  children 
  913. record  #6.   If you then pressed the enter key after finishing with  record 
  914. #6,  the  computer  would present you with record #14 in the  children  file 
  915. which  would  also be linked to master record #5.  If you pressed  "F5"  the 
  916. computer  would  present you with record #7 in the children  file  which  is 
  917.  
  918.  
  919.              The Omaha DataBase Program     Page - 14
  920.  
  921.  
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928. linked  to  the  master  file  record #6.  (This is  more  easily  done  and 
  929. understood than explained.)
  930.  
  931. 4.3.3 CHANGING MASTER FILE POINTER ON SUB-FILE RECORD
  932.  
  933.      Life  is never as simple as it should be.   There may be occasions when 
  934. you  have a power or disk failure and some information on your  files  could 
  935. get garbled.   This routine will allow you to manually change the pointer on 
  936. a  sub-file  record to the master file.   You will have to press "ALT  F-10" 
  937. while  you  are  in the data entry routine (F1 from  the  main  menu).   The 
  938. computer  will then allow you to enter a number for the master file  record.  
  939. It  will  then display the first three entries of that  master  file  record 
  940. before  writing  pointing this sub-file record to that master  file  record.  
  941. You will probably never need this routine, but it may be helpful to you.
  942.  
  943. 4.4 Search
  944.  
  945.      Sometimes  you  don't know the record number of the record you wish  to 
  946. examine or change,  and the search routine will help you to quickly find the 
  947. record you want.  You will have to enter the file  and the field you wish to 
  948. search under.   You will then have to enter the item you wish to search for, 
  949. with  the beginning record number.   The computer will ask for  confirmation 
  950. before  it  begins the search.   If you press the 'Q' key  for  'quit',  the 
  951. search will be terminated.  
  952.  
  953.      The search will attempt to match only the beginning of the field.  Thus 
  954. if  you enter "AND" as the search item,  the computer will  display  records 
  955. with   "ANDERS", "ANDERSON" etc.   It will not display records that  contain 
  956. "AND" in the middle of the field, such as: "DURANDT" or "SANDERSEN".
  957.  
  958. 4.5 Monitor Display of Records
  959.  
  960.      The special use of the function keys make this almost fun to use.  This 
  961. routine is great for "browsing" through the files.   You can go up and  down 
  962. the  sub-files as well as backwards and forwards.   These function keys will 
  963. be in special use during the monitor display:
  964.  
  965.      F1 Will move back one record in the file you are viewing
  966.      F2 Will move forward one record in the file you are viewing
  967.      F3 Will move up one file to previous sub-file or master file
  968.      F4 Will move down one file to next sub-file
  969.      F5 Will move back one record in the master file
  970.      F6 Will move forward one record in the master file
  971.      F7 Will allow you to switch from viewing records in physical order
  972.         to linked order or vice versa
  973.      F8 Will allow you to view remainder of record if it has more than
  974.         11 fields and cannot be displayed on one screen at once
  975.      F9 Will allow you to choose any record number
  976.      F10 Will return to menu
  977.  
  978.  
  979.  
  980.  
  981.  
  982.  
  983.  
  984.  
  985.              The Omaha DataBase Program     Page - 15
  986.  
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.                              SECTION 5: SORTING
  996.  
  997.  
  998. 5.1 INTRODUCTION
  999.  
  1000.      One  of  the  great  needs  in  printing  reports  from  any  database, 
  1001. especially one used for census,  is the ability to sort the information in a 
  1002. variety of ways.   This sort program uses a machine language sorting program 
  1003. that will rapidly read and sort any file.  Within one file, the sort program 
  1004. can read 2500 records, sort them, and write the index within one minute.  If 
  1005. you  are sorting information from several files together,  the program  will 
  1006. first  have  to write a file containing all of the key information for  each 
  1007. record. The sorting of several files will take longer.
  1008.  
  1009.  
  1010. 5.2 INDICATE FIELDS AND KEYS FOR SORT
  1011.  
  1012.      As  you  begin,  the  computer will ask you to pick the  file  for  the 
  1013. primary  sort.   This means that all records from this file will be  sorted, 
  1014. even  if more than one is linked to a master record.   You can have  another 
  1015. file  for the secondary sort.   Only the first record linked to  the  master 
  1016. file  record will be sorted in the secondary sort.  Let me explain,  if  you 
  1017. wish a printed listing of all children,  with the names of the parents,  and 
  1018. you  wanted the children printed in chronological order of birth;  then  you 
  1019. would  designate  the CHILDREN file as the file for the primary  sort.   All 
  1020. records  in the CHILDREN file would be sorted according to birth  date.   If 
  1021. you are printing an Alphabetic listing of your parish, the PARISH file would 
  1022. be  the file for the primary sort.   If you have no file for  the  secondary 
  1023. sort, then just press the 'enter' key.
  1024.  
  1025.      You  will then be asked to enter the sort keys.   You can have up to  8 
  1026. sort keys.   For each key, you will have to indicate the file and the field.  
  1027. In  addition to this,  you can indicate the beginning byte within that field 
  1028. and  the length for the sort key.   If you just press the 'enter'  key,  the 
  1029. sort key will start at the beginning byte of the field and sort on the basis 
  1030. of the first five bytes.    If you pick a "date" field for a sort  key,  the 
  1031. computer will automatically sort first by the year, then the month, and then 
  1032. the day.   If you wish to sort,  for example, by the month, you can override 
  1033. this  by  not pressing the enter key,  and entering then the number  of  the 
  1034. beginning byte and '2' for the length.
  1035.  
  1036.      The  computer will then ask you whether you wish to enter another  key. 
  1037. If not, the keys may be written to the disk or re-done.  
  1038.  
  1039. 5.3 SORTING THE FILES
  1040.  
  1041.      If  you have a secondary file,  then the computer will have to write  a 
  1042. new file that contains the key information. This will then be sorted and the 
  1043. record  numbers  of the sorted list written to a new file.   This  procedure 
  1044. will take longer.   If you have just one file, the sort should not take very 
  1045. long.   The  computer can quickly read and sort the one file and  write  the 
  1046. index file to the disk.  
  1047.  
  1048.      If  you  have  a  secondary file,  the computer will then  ask  you  to 
  1049.  
  1050.  
  1051.              The Omaha DataBase Program     Page - 16
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060. indicate the drive that contains the primary file,  the drive that  contains 
  1061. the  secondary file,  and the drive that is to contain the key  information.  
  1062. The index will always be written on the disk that contains the primary file.
  1063.  
  1064.      The  computer  will  instruct you to insert the program disk  into  the 
  1065. active  drive so that the computer can load the sorting module into  memory.  
  1066. The  computer  will also allow you an opportunity to re-insert  the  program 
  1067. disk into active drive so that the computer can write the index file on  the 
  1068. program disk. 
  1069.  
  1070. 5.4 SORTED INDEX ON DATA DISK
  1071.  
  1072.      The index that contains the sorted order of the records,  is written on 
  1073. the  data  disk.   It may happen that you will run out of room on your  data 
  1074. disk.  If you run out of room, you will need to see if there is any space on 
  1075. the  disk that can be "re-claimed."  Run CHKDSK from your DOS disk  to  make 
  1076. sure  there is no room left on the disk.   If there is no extra space on the 
  1077. disk,  then you will have to transfer one of your sub-files to another  data 
  1078. disk.   You would first make a copy of the data disk.   Then copy one of the 
  1079. sub-files  to another data disk.   Delete the sub-file from the first  disk, 
  1080. then  change the format file through The Create Program,  to indicate that a 
  1081. sub-file  has  been moved to a disk in another drive.   Then you  may  begin 
  1082. The Sort Program again.
  1083.  
  1084.      On really large files,  the computer will use part of the disk to write 
  1085. a scratch file while it is sorting.
  1086.  
  1087. 5.5 CONCLUSION
  1088.  
  1089.      The  sorting  of  a data base is one of the essential and  basic  tasks 
  1090. of  maintaining information.   You will really enjoy the speed and  ease  of 
  1091. this sorting program.
  1092.  
  1093.  
  1094.  
  1095.  
  1096.  
  1097.  
  1098.  
  1099.  
  1100.  
  1101.  
  1102.  
  1103.  
  1104.  
  1105.  
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.              The Omaha DataBase Program     Page - 17
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127.                        SECTION 6.0: THE PRINT PROGRAM
  1128.  
  1129.  
  1130. 6.1 INTRODUCTION
  1131.  
  1132.      One  of  the  essential elements of a data base program  is  the  print 
  1133. program.  You can sort the information in a variety of ways and then have it 
  1134. printed in the sorted order.   This program will print up labels or reports, 
  1135. it will make a clone of your database.   It will display on the screen,  the 
  1136. printer  or the disk.   The printer commands are set up for an IBM or  Epson 
  1137. printer.   If  you need to change the printer commands,  press  the 'O'  key 
  1138. (Oh)  when the print program is being loaded in from the menu.   The program 
  1139. will then ask you to type in the new commands for compression and next page.
  1140.  
  1141. 6.2 REPORT FORMATS
  1142.  
  1143.      As you begin this program, this computer will read the master data disk 
  1144. and  look for the report formats on the disk.  It will display them and  ask 
  1145. you  to  enter the format file to use.   If you wish to create a new  format 
  1146. file,  then enter the name you wish to give it.   If the computer finds  the 
  1147. format  file,  it will load it in.  If the computer does not find the format 
  1148. file, then you will have to create a new format file.
  1149.  
  1150. 6.2.1 Creating a new Format file
  1151.  
  1152.      You  will  first  have to enter the title of the report  that  will  be 
  1153. displayed  on  the  report.   The computer will then ask you  which  is  the 
  1154. primary file for the report.   (The computer then will pick the sorted index 
  1155. file  for that primary file.  If there is no sorted index on the  disk,  the 
  1156. computer  will  use the physical record order.)  You will then be  asked  to 
  1157. indicate  the  file  and the field for each report  item.   There  are  some 
  1158. special codes that are used here:
  1159.      
  1160.      #    the physical record number 
  1161.      *    the sorted record number
  1162.      @    new line (used especially for labels)
  1163.      '    adding message or constant value
  1164.      +    add spaces
  1165.      0-6  number for files
  1166.      9    end
  1167.  
  1168.      Enter "#" if you want the physical record number printed.   If you want 
  1169. the  sorted record number printed,  then enter "*".   If you wish to begin a 
  1170. new  line,  enter  "@".   This  is especially useful  for  creating  labels. 
  1171. (Remember there are usually 6 lines from the top of one label to the top  of 
  1172. another.) If you wish to add blank spaces,  enter "+" followed by the number 
  1173. of  spaces you wish to add.  To add 15 spaces,  enter "+15".  If you wish to 
  1174. insert  a constant value or message,  enter " ' " followed by the  value  or 
  1175. message.   You  might  find  this helpful for creating cloned files  or  for 
  1176. inserting messages on your labels.
  1177.  
  1178.      The  print  program will print up to 132 columns;  after that  it  will 
  1179. start a new line.
  1180.  
  1181.  
  1182.  
  1183.              The Omaha DataBase Program     Page - 18
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192. 6.2.2 Linked Records in Sub-File
  1193.  
  1194.      If the print format contains a sub-file,  the computer will ask whether 
  1195. you  want  only the 1st linked record or all of  the  linked  records.   For 
  1196. example,  if  you were printing the list of the parents with their children, 
  1197. you would want all of the linked records.   (The printer uses a new line for 
  1198. each linked record.)
  1199.  
  1200. 6.2.3 Report
  1201.  
  1202.      The  computer will then ask whether you want the report  on  (P)rinter, 
  1203. (S)creen  or  (D)isk.   If you choose 'disk' the computer will  further  ask 
  1204. whether  you  wish  to clone the report.  (In cloning,  the report  will  be 
  1205. printed to the disk without headings.)   
  1206.  
  1207.      The  computer  will also ask if you wish to choose a field  to  trigger 
  1208. sub-totals.   In other words,  whenever that field would change,  the report 
  1209. would then print a sub-total of all the numeric fields.
  1210.  
  1211. 6.3 USING COMPARISONS FOR YOUR REPORT
  1212.  
  1213.      The  computer  will  then  ask you whether you want  (A)ll  records  or 
  1214. (S)elected records on the report.   You are able to use up to 10 comparisons 
  1215. in  your  selection.   The elements of the report will be displayed and  you 
  1216. will be asked to indicate which field you wish to use for  selection.   Once 
  1217. you  have indicated that,  the computer will present you with four types  of 
  1218. comparisons:
  1219.  
  1220.      (1) >  greater than
  1221.      (2) <  less than
  1222.      (3) =  equal to
  1223.      (4) <> not equal to
  1224.  
  1225.      You  will  then enter the value on which the selection is to be  based.  
  1226. If  the  element  is a date,  the computer will ask  whether  you  want  the 
  1227. comparison  started  at  the month,  day or year.   If you  wanted  all  the 
  1228. dates  on Jan 1,  1980,  you would indicate month and enter 010180.  If  you 
  1229. wanted just Jan, you would enter "01".
  1230.  
  1231.      Then  computer will ask the relationship of this comparison to the next 
  1232. one:
  1233.      (1) AND
  1234.      (2) OR
  1235.      (3) END
  1236.  
  1237.      If you press '3' this will be the end of the comparisons.  If you press 
  1238. 1 or 2 you can add another comparison.   Remember with "AND" both conditions 
  1239. must be true,  with "OR" only one condition needs to be true.  It is easy to 
  1240. get mixed up.   For example,  IF A OR B AND C OR D, means that there are two 
  1241. units A OR B, C OR D.  The "AND" specifies that both must be true.  Thus for 
  1242. the  example to be true,  A or B must be true AND C or D must be  true.   It 
  1243. gets a little complicated after three comparisons or so.  If you select only 
  1244. some records, this will take up more computer time.
  1245.  
  1246.  
  1247.  
  1248.  
  1249.              The Omaha DataBase Program     Page - 19
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259. 6.4 PRINTERS
  1260.  
  1261.      The  Omaha  DataBase  Program  does not use  alot  of  printer  "razzle 
  1262. dazzle".  The  program really only uses two basic printer commands.  One for 
  1263. compression (for writing 132 columns on  8 1/2" wide paper), and another for 
  1264. next page.   If these commands do not work for your printer,  then press "O" 
  1265. then the print program starts and the computer will ask you to enter the new 
  1266. commands.   Generally these two commands are standard, so you probably won't 
  1267. have to change them.  The printer is set up for a parallel line printer  #1.  
  1268. If you wish to change this, use The Printer Configuration Program.
  1269.  
  1270. 6.5 CLONING A NEW FILE
  1271.  
  1272.      As an example,  let us use the sample data file format. You will notice 
  1273. that  you have dates in four places,  the husband's and wife's birthday  and 
  1274. the  anniversary  in  the PARISH file,  and the childrens' birthday  in  the 
  1275. CHILDREN file.   You might wish that you had a file called DATES that  would 
  1276. contain all these dates so that they could be sorted. Perhaps you could then 
  1277. publish  in  the  bulletin,  a  sorted monthly list  of  the  birthdays  and 
  1278. anniversaries for that month. 
  1279.  
  1280. 6.5.1 FIRST "CREATE" THE FILE
  1281.  
  1282.      First you would use The Create Program.   You could create the new file 
  1283. called "DATES".   You could have these fields: (1) Last Name, Alpha, 20; (2) 
  1284. First name,  Alpha,  10;  (3) Wife's Name, Alpha,10; (4) Type, Alpha, 2; (5) 
  1285. B/A Date,  Date,  6;  (5) +1 (This is for the "return" or "enter"  character 
  1286. that end each record when it is "printed".) 
  1287.  
  1288. 6.5.2 "PRINT" THE CLONE FILE
  1289.  
  1290.      Then you would go to The Report Program and prepare a report that would 
  1291. list:  Last Name, Father, Mother, "oo" (this would be a symbol under TYPE to 
  1292. indicate that this is an anniversary), Wedding, +1.  You would then indicate 
  1293. that it is to be "printed" on the DISK as a CLONE>  You could also  indicate 
  1294. that  you  wanted  to select only those records,  whose  month  value  under 
  1295. "Wedding"  was greater than zero.  (This would avoid printing the records of 
  1296. single or widowed people.)  You could then give it a name like "C1".
  1297.  
  1298.      When this is finished,  you would then prepare a report form that would 
  1299. print  the Last Name,  Father,  +10 (skip over 10 spaces since there  is  no 
  1300. other name on this report), '** (for TYPE; "**" could represent a birthday), 
  1301. Male DOB,  +1 (for the enter character).  Then as with the previous example, 
  1302. chose DISK,  then CLONE.   You could select on the basis of the MALE DOB and 
  1303. avoid printing any records with a zero value.  You could then give the clone 
  1304. file a name like "C2".
  1305.  
  1306.      You  could then prepare a report for the women's  birthdays.  It  would 
  1307. print Last Name, Mother, +10, '**, FMALE DOB, +1.  Clone this as "C3".  Then 
  1308. with the children's birthdays,  prepare a report that would print Last Name, 
  1309. First Name, +10, '**, DOB, +1. You could then name this clone as "C4".
  1310.  
  1311.  
  1312.  
  1313.  
  1314.  
  1315.              The Omaha DataBase Program     Page - 20
  1316.  
  1317.  
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.  
  1325. 6.5.3 MERGE CLONED FILES TOGETHER TO CREATE SUB-FILE AND PRINT
  1326.  
  1327.      If you would then type "SYSTEM" and then "DIR" you would see four files 
  1328. on  the disk with the titles "C1.OUT",  "C2.OUT",  "C3.OUT",  and  "C4.OUT". 
  1329. There is an easy way to merge these files using the COPY command. (Make sure 
  1330. you  have no other files with an extension of "OUT" on the disk or they  too 
  1331. will be merged.) Type COPY *.OUT+ DATES
  1332.  
  1333.      This  command will copy all files with an extension of "OUT" and  merge 
  1334. them together in a file called DATES.  If you look at the raw file, you will 
  1335. notice that the first four spaces (that were added during "cloning") of each 
  1336. record are reserved for the master file pointer and the pointers to the next 
  1337. linked  file in this sub-file.   (F you wish to clone a Master File,  please 
  1338. add  six spaces as the first item in the report (+6) since the  Master  File 
  1339. requires  10  spaces for pointers.) You will need to type "AUTOEXEC" to  re-
  1340. boot The Omaha DataBase Program.   Now go to The Repair Program.  The Repair 
  1341. Program  will now link together the records for the same master file  record 
  1342. and will enter the pointers for this sub-file onto the master file. Then you 
  1343. can go to The Sort Program and sort the DATES file by Month and  Day.  After 
  1344. this  you  can go to The Report Program and print out all the birthdays  and 
  1345. anniversaries for each month.
  1346.  
  1347. 6.5.4 IMPORTANCE OF KEEPING FIELD LENGTHS IDENTICAL
  1348.  
  1349.      The  important  thing to remember when you are cloning a new file  like 
  1350. this  is that each cloned file must have the same (identically same)  number 
  1351. of  spaces  for each record and field.  In our example,  we  needed  to  add 
  1352. another name for the anniversary dates, but on the birthday dates we did not 
  1353. need  this second name.   To keep the files equal we added 10 spaces  so  we 
  1354. could  skip over this name in the birthday files and yet have all the  other 
  1355. information in the exact same spot in each file.   This way each cloned file 
  1356. is identical in length and each field STARTS at the same spot!!!!!
  1357.  
  1358.      This  is a little tricky,  but it produces a nice file that will  allow 
  1359. you to print up your birthdays and anniversaries each month.
  1360.  
  1361.  
  1362.  
  1363.  
  1364.  
  1365.  
  1366.  
  1367.  
  1368.  
  1369.  
  1370.  
  1371.  
  1372.  
  1373.  
  1374.  
  1375.  
  1376.  
  1377.  
  1378.  
  1379.  
  1380.  
  1381.              The Omaha DataBase Program     Page - 21
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390.  
  1391.  
  1392.                        SECTION 7: THE REPAIR PROGRAM
  1393.  
  1394.  
  1395. 7.1 INTRODUCTION
  1396.  
  1397.      This section is a bit more technical.   There is an intricate system of 
  1398. pointers connecting the master file to the sub-files.    The first ten bytes 
  1399. of  each  master file record contain the pointers to each of the  five  sub-
  1400. files.   (There  are  two bytes for each sub-file record.  They  are  packed 
  1401. integers.  The  largest number that can be packed into two bytes is 32,000.)  
  1402. Each  sub-file record contains 4 bytes for pointers.   The first  two  bytes 
  1403. contain  the pointer for the master file record.  The next two bytes contain 
  1404. the  pointer  to the next linked record with that  sub-file.   Also  deleted 
  1405. records  are  linked together.   A deleted record contains byte "0" and  "*" 
  1406. followed by the number of the next deleted record within that sub-file.
  1407.  
  1408.      You  will  need to use this program if something goes wrong  with  your 
  1409. files.   This can happen if you manually interrupt your program as  pointers 
  1410. are being re-written on the files.  Another problem could develop if you had 
  1411. a power stoppage while a record was being written.   You may never need this 
  1412. program,  but  since  the pointers are so important in this data  base  this 
  1413. program can be very useful if you ever get into trouble.
  1414.  
  1415.      Also  the records within a sub-file that are linked to the same  master 
  1416. file  record are linked in the order in which they are entered.   A  problem 
  1417. may  develop  that  you may enter the children in the CHILDREN file  out  of 
  1418. their  chronological order.   If you wish you can use this program to adjust 
  1419. the pointers within the sub-file so that the children for each master record 
  1420. are linked in their chronological order.
  1421.  
  1422.      This program re-arranges the order in which each sub-file is linked  to 
  1423. its  master  file record.   It will also repair all the pointers within  the 
  1424. files.  You will have to enter the sort instructions for each sub-file.  The 
  1425. records are sorted first by the pointer to the master file record.   You can 
  1426. then  indicate two other fields by which these files can  be  sorted.   This 
  1427. program  adjusts three kinds of pointers:  the pointers in each master  file 
  1428. record to their sub-file records, the pointer in each sub-file record to the 
  1429. next linked sub-file record (that is linked to the same master file record), 
  1430. the pointers to the deleted records.  
  1431.  
  1432. 7.2 CHOICES
  1433.  
  1434.      As you begin, you will be presented with this menu:
  1435.  
  1436.           F1  INSTRUCTIONS
  1437.           F2  ENTER SORT PARAMETERS FOR FILE REPAIR
  1438.           F3  BEGIN FILE REPAIR
  1439.  
  1440.           F10 EXIT
  1441.  
  1442.      The  first  option  will  give you instructions for  the  use  of  this 
  1443. program.   The  second  choice will allow you to enter the options  for  the 
  1444. sorting order of the linked sub-files.  The third option actually begins the 
  1445.  
  1446.  
  1447.              The Omaha DataBase Program     Page - 22
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456. repair process.
  1457.  
  1458. 7.3 ENTERING SORT PARAMETERS FOR FILE REPAIR
  1459.      
  1460.      You can enter up to two additional sort parameters for each file.   The 
  1461. first sort parameter is the pointer to the master file record.  You can then 
  1462. indicate two other fields within each sub-file for the sort,  and the length 
  1463. for the sort on the field.   The sort routine does not take much time.   All 
  1464. sub-files  must  be sorted,  even if you just wish to repair  one  sub-file. 
  1465. After  you indicate the sort parameters,  the program will then exit for the 
  1466. sort.
  1467.  
  1468.      
  1469. 7.4 RECONSTRUCTION OF THE FILES
  1470.  
  1471.      When  the sort index has been re-written,  you will be returned to  the 
  1472. menu.  Then you can choose F3 to begin reconstruction of the files. You will 
  1473. then be asked which files you wish to repair.  You can choose to repair just 
  1474. one  file or all files.   The computer will then erase from the master  file 
  1475. records,  all pointers to the sub-files that are to be reconstructed.  After 
  1476. that  the  computer  will then read the sort index for  each  sub-file.  The 
  1477. computer will then adjust the pointers within the sub-files so that they are 
  1478. arranged in this order.  It will then re-adjust the pointers on the  deleted 
  1479. records.
  1480.  
  1481.      If you choose to reconstruct the master file only, the computer will go 
  1482. through the master file and adjust the pointers on the deleted  records.  It 
  1483. will  then rewrite the pointers to the first record on each sub-file that is 
  1484. linked to the master file.
  1485.  
  1486.      If  you  have chosen to have all files reconstructed,  this  will  take 
  1487. alittle while for all these tasks to be completed,  please be  patient.  The 
  1488. computer will advise you on the bottom of the screen where it is and what it 
  1489. is doing. 
  1490.  
  1491.      The  only situation in which this program will not reconstruct a record 
  1492. correctly  is  if th pointer in the sub-file for the master file  record  is 
  1493. erased.   The  computer  would have no way of knowing to which  master  file 
  1494. record  a  sub-file  record is linked.   You will have to use the  ALT  F-10 
  1495. procedure in the data entry of The File Program (explained in the manual  in 
  1496. Section 4.3.3).
  1497.  
  1498.  
  1499.  
  1500.  
  1501.  
  1502.  
  1503.  
  1504.  
  1505.  
  1506.  
  1507.  
  1508.  
  1509.  
  1510.  
  1511.  
  1512.  
  1513.              The Omaha DataBase Program     Page - 23
  1514.  
  1515.  
  1516.  
  1517.  
  1518.  
  1519.  
  1520.  
  1521.  
  1522.  
  1523.                      SECTION 8.0: PRINTER CONFIGURATION
  1524.  
  1525. 8.1 INTRODUCTION
  1526.  
  1527.      If  you are using an Epson  or IBM printer,  you will probably have  no 
  1528. need  to use this program.   Those of you who have more than one printer  or 
  1529. those who have a "strange" printer may need this program.  This program uses 
  1530. the  MODE  command  (which is transferred to your program  disk  during  the 
  1531. INSTALLation).   The  MODE command will allow you to either (1) set the mode 
  1532. of  operation  for a parallel printer or (2) transfer all  printing  from  a 
  1533. parallel  printer to an asynchronous communication adapter (you must have an 
  1534. asynchronous  commmunication  adapter installed in your  computer  for  this 
  1535. option).
  1536.  
  1537.      Please  read your D.O.S.  manual before you use this program.   The DOS 
  1538. manual will explain the various options that are available.  You should also 
  1539. check  your  printer  manual to see which options  your  printers  requires.  
  1540. Printer manuals are sometimes difficult to understand so you may have to  do 
  1541. a  little experimenting with this program.   If you wish to double-check  to 
  1542. make  sure  that your printer is properly connected with The Omaha  DataBase 
  1543. Program  after using this program,  press "Ctrl-Alt-Del" to  re-boot.   This 
  1544. will   automatically   re-run  the  AUTOEXEC.BAT  file  that   the   printer 
  1545. configuration  program  changes.   If  your  printer  does  not  print  this 
  1546. correctly,  it may be due to one of the settings on your printer or you  may 
  1547. have an incorrect printer configuration setting.
  1548.  
  1549. 8.2 THE PROGRAM
  1550.  
  1551.      When  you begin,  you will have four choices:  (1) set for  a  parallel 
  1552. card; (2) set for an asynchronous communication adapter; (3) erase file; (4) 
  1553. exit.  When you wish to use the mode for a parallel printer, the screen will 
  1554. look like this:
  1555.  
  1556.  
  1557.           ** SET MODE OF OPERATION FOR A PARALLEL
  1558.  
  1559.      1.  # [PARALLEL LINE PRINTER COM. #]............
  1560.      2.  n [CHARACTERS PER LINE].....................
  1561.      3.  m [LINES PER INCH VERTICAL SPACING].........
  1562.      4.  p [CONTINUOUS RETRY ON TIME-OUT ERRORS].....
  1563.  
  1564.  
  1565.      If  you are setting the mode for an asynchronous communication  device, 
  1566. the screen will look like this:
  1567.  
  1568.      1.  n [ASYCHRONOUS COM #].......................   
  1569.      2.  baud........................................
  1570.      3.  parity......................................
  1571.      4.  databits....................................
  1572.      5.  stopbits....................................
  1573.      6.  P [RETRY OF TIME-OUT ERRORS]................
  1574.      7.  # [LPT PRINTER NUMBER]......................
  1575.  
  1576.  
  1577.  
  1578.  
  1579.              The Omaha DataBase Program     Page - 24
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.  
  1589.      As  you  use this routine,  the prompt box on the bottom of the  screen 
  1590. will advise you what the usual response should be.   If the usual options do 
  1591. not work, you will need to double-check your printer manual.
  1592.  
  1593.      You  can't ruin anything by "experimenting" with this program and  your 
  1594. printer(s).   You  can use this program to set for different printers.   You 
  1595. might want to use a dot-matrix printer for some of the ordinary reports, but 
  1596. a letter-quality printer for other reports.
  1597.  
  1598.      IMPORTANT NOTICE:  If you use this for an asynchronous printer, you may 
  1599. find  that  you  have  to have the printer ON when you  boot  up  The  Omaha 
  1600. DataBase Program to avoid a "printer" error.   If you have an error  message 
  1601. displayed  on  the  screen when you begin The Omaha  DataBase  Program,  try 
  1602. turning on your printer and re-booting to see if this solves the problem.
  1603.  
  1604.  
  1605.  
  1606.  
  1607.  
  1608.  
  1609.  
  1610.  
  1611.  
  1612.  
  1613.  
  1614.  
  1615.  
  1616.  
  1617.  
  1618.  
  1619.  
  1620.  
  1621.  
  1622.  
  1623.  
  1624.  
  1625.  
  1626.  
  1627.  
  1628.  
  1629.  
  1630.  
  1631.  
  1632.  
  1633.  
  1634.  
  1635.  
  1636.  
  1637.  
  1638.  
  1639.  
  1640.  
  1641.  
  1642.  
  1643.  
  1644.  
  1645.              The Omaha DataBase Program     Page - 25
  1646.  
  1647.  
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653.  
  1654.  
  1655.  
  1656.                            SECTION 9: CONCLUSION
  1657.  
  1658.  
  1659. 9.1 COST OF PROGRAM
  1660.  
  1661.      If  you  find this program to be useful,  please send $50.00 to  Gerald 
  1662. Gonderinger,  Box 150,  Clearwater Ne.  68726.   This will entitle you to  a 
  1663. complete program disk that contains the SORT.EXE module that does the actual 
  1664. sorting.   In  addition,  your  $50.00 will put you on the mailing list  for 
  1665. announcements of further updates of The Omaha DataBase Program.  Updates can 
  1666. be  purchased at $10.00.   We owe $40.00 on each copy of The Omaha  DataBase 
  1667. Program  to  Opt-Teach  Sort  for the use of  their  sort  module.   We  are 
  1668. operating on a "thin" "profit" margin,  so we would appreciate your  $50.00. 
  1669. Thank you.
  1670.  
  1671.      Remember  to help me stay on good terms with the people  from  Opt-Tech 
  1672. Data  Processing,  you cannot make copies of the SORT.EXE program that is on 
  1673. this disk.   I have tried to keep the purchase price low so that even people 
  1674. of modest means can afford this program.  Please respect the copyrights. 
  1675.  
  1676. 9.2 MAXIMUMS
  1677.  
  1678.      Minimum RAM memory required ........128 K
  1679.      Maximum Fields per file.............70
  1680.      Maximum Field Length................255
  1681.      Maximum Record Length...............765
  1682.      Maximum Open Files in System........7
  1683.      Minimum Disk Drives.................1
  1684.      Maximum Records per File............32,500
  1685.      
  1686. 9.3 ORDER FORM
  1687.  
  1688.      The  order form for the complete Omaha DataBase Program is on the  next 
  1689. page.   Just  fill out the order form and send it with your check to  Gerald 
  1690. Gonderinger, Box 150, Clearwater Ne. 68726.
  1691.  
  1692.  
  1693.  
  1694.  
  1695.  
  1696.  
  1697.  
  1698.  
  1699.  
  1700.  
  1701.  
  1702.  
  1703.  
  1704.  
  1705.  
  1706.  
  1707.  
  1708.  
  1709.  
  1710.  
  1711.              The Omaha DataBase Program     Page - 26
  1712.  
  1713.  
  1714.  
  1715.  
  1716.  
  1717.  
  1718.  
  1719.  
  1720.  
  1721.  
  1722. ORDER FORM
  1723. ----------
  1724.  
  1725.  
  1726.  
  1727.  
  1728.  
  1729. SEND TO:
  1730.      THE OMAHA DATABASE PROGRAM
  1731.      GERALD GONDERINGER
  1732.      BOX 150
  1733.      CLEARWATER NE. 68726
  1734.  
  1735.  
  1736.  
  1737. DATE: __/__/__
  1738.  
  1739. ===========================================================================
  1740.  
  1741.   PRODUCT                          QTY     PRICE          EXT.PRICE
  1742.  
  1743. ===========================================================================
  1744.  
  1745. "The Omaha DataBase Program"      ______    50.00          __________
  1746.  
  1747.  
  1748.  
  1749.  
  1750. 4.0% state sales tax
  1751. (Nebraska Residents Only)           $2.00 per copy         __________
  1752.  
  1753.  
  1754.  
  1755.                                          Total:            ___________
  1756.  
  1757.  
  1758.  
  1759.  
  1760.  
  1761.  
  1762. Please make check payable to : GERALD GONDERINGER           
  1763.      
  1764.  
  1765. Please mail this order form with your check.
  1766.  
  1767.  
  1768.  
  1769.  
  1770.  
  1771.  
  1772.  
  1773.  
  1774.  
  1775.  
  1776.  
  1777.              The Omaha DataBase Program     Page - 27
  1778.  
  1779.  
  1780.  
  1781.  
  1782.  
  1783.